                        ($scope.loadUsers)
                        (do
                          (! $scope.usersLoaded "loading")
+                         (! $scope.isSearch true)
                          (! $scope.showPaging false)
                          (-> $http
                              (.get (str "/api/user/search/" $scope.query))

                            (* $scope.usersPerPage $scope.currentPage)))))

  (! $scope.loadUsers (fn []
                        (! $scope.usersLoaded "loading")
                        (-> $http
                            (.get (str "/api/users/" $scope.usersPerPage "/" $scope.currentPage))

  (! $scope.usersPerPage 10)

  ;;don't modify these values
  (! $scope.showPaging false)
  (! $scope.isSearch false)
  (! $scope.filteredUsers (array))
  (! $scope.pagedUsers (array))
  (! $scope.currentPage 1)
