 
         $el.on "click", ".close", (event) ->
             event.preventDefault()
-            lightboxService.close($el)
+
+            closeLightbox()
+
             $scope.$apply ->
                 $scope.usersSearch = null
 


        $el.on "click", ".close", (event) ->
            event.preventDefault()
            lightboxService.close($el)
            $scope.$apply ->
                $scope.usersSearch = null



            html = usersTemplate(ctx)
            $el.find("div.watchers").html(html)
            lightboxListNavigationService.init($el)

        closeLightbox = () ->
            lightboxListNavigationService.stop()
            lightboxService.close($el)

        $scope.$on "assigned-to:add", (ctx, item) ->
            selectedItem = item
