 
         user_close: (event) ->
             app.commands.execute 'clearSelectedUnit'
-            if @back == 'search'
+            unless @search_results.isEmpty()
                 app.commands.execute 'search'
             # TODO
             # else if @back == 'browse'

            @INITIAL_NUMBER_OF_EVENTS = 5
            @NUMBER_OF_EVENTS_FETCHED = 20
            @embedded = options.embedded
            @back = options.back

        render: ->
            super()

                when 'details'
                    view = new DetailsView
                        model: @selected_units.first()
                        search_results: @search_results
                when 'event'
                    view = new EventView
                        model: @selected_events.first()
