function toggleUserNode(node) {

          if(window.no_auth) {
            var credentials = $localStorage.credentials;
            if(credentials.user.node && credentials.user.node.id == node.id) {
              delete credentials.user.node;
            }else{
              credentials.user.node = node;
            }
            $rootScope.$broadcast('user.node.updated', credentials.user.node)
          }else{
            UserModel
              .update(UserService.user().id, {
                node: isActive(node) ? null : node
              }).then(function onSuccess(res) {
              var credentials = $localStorage.credentials
              var user = res.data;
              if (!user.node) {
                delete credentials.user.node;
              } else {
                credentials.user.node = node;
              }

              $rootScope.$broadcast('user.node.updated', res.data.node)
            })
          }
        }
Simple watcher for 'itemsPerPage' scope variable. If this is changed we need to fetch author data
from server.