change to prevent a failed query if we are on the last page and the next page button is cliqued
remove the watch on $scope.page because this variable is modified by the gotoPage method, removing this watch prevent a dupliquate query the server