                 area.result.push data
 
           @renderResult(result)
+
+          @$('#global-search-result').on('click', 'a', =>
+            close()
+          )
       )
+
+    removePopovers = ->
+      $('.popover').remove()
+
+    close = =>
+      @$('#global-search').blur()
+      @$('.search').removeClass('open')
+
+      # remove not needed popovers
+      @delay( removePopovers, 280, 'removePopovers' )
 
     emptyAndClose = =>
       @$('#global-search').val('').blur()
       @$('.search').removeClass('filled').removeClass('open')
 
+      # remove not needed popovers
+      @delay( removePopovers, 280, 'removePopovers' )
+
+
     # observer search box
     @$('#global-search').bind( 'focusout', (e) =>
       @$('.search').removeClass('focused')

      @$('.search').addClass('focused')

      # remove not needed popovers
      $('.popover').remove()

      # check if search is needed
      term = @$('#global-search').val().trim()

      @delay( searchFunction, 220, 'search' )
    )

    # prevent submit of search box
    @$('form.search').on( 'submit', (e) =>
      e.preventDefault()
    )

    # start search
    @$('#global-search').on( 'keyup', (e) =>

      # close on esc
      if e.which == 27
