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

            data = @model.toJSON()
            data.provider = @get_translated_provider(@model.get('provider_type'))
            description = data.description
            if @back?
                data.back_to = i18n.t('sidebar.back_to.' + @back)
            MAX_LENGTH = 20
            if description
                words = description.split /[ ]+/


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