         template: 'search-layout'
         type: 'search'
         events:
-            'click .show-all': 'showAll'
+            'click .show-all': 'showAllOfSingleType'
             'scroll': 'tryNextPage'
         tryNextPage: ->
-            # TODO FIX
-            @resultLayoutViews.unit?.tryNextPage()
-        showAll: (ev) ->
+            if @expanded
+                @resultLayoutViews[@expanded]?.tryNextPage()
+        showAllOfSingleType: (ev) ->
             ev?.preventDefault()
             target = $(ev.currentTarget).data 'target'
+            @expanded = target
             _(@collections).each (collection, key) =>
                 if key == target
                     collection.trigger 'show-all'
                 else
                     collection.trigger 'hide'
+        backToSummary: ->
+            @expanded = null
+            @render()
 
         _regionId: (key) ->
             "#{key}Region"

                @render()

        getDetailedFieldset: ->
            if @resultType == 'unit'
                ['services']
            else
                ['ancestors']

        initialize: (opts) ->
            @expansion = EXPAND_CUTOFF

            @getRegion @_regionId(key)

        initialize: ->
            @expanded = null
            @collections = {}
            @resultLayoutViews = {}

