             @all_markers = L.featureGroup()
             @listenTo app.vent, 'unit:render-one', @render_unit
             @listenTo app.vent, 'units:render-with-filter', @render_units_with_filter
+            @listenTo app.vent, 'units:render-category', @render_units_by_category
 
         render: ->
             return this

    class TitleBarView extends Backbone.View
        events:
            'click a': 'preventDefault'

        initialize: ->
            @listenTo(app.vent, 'administration-divisions-fetched', @render)

                error: ->
                    # TODO: what happens if no models are found with query?
            )

        render_units_by_category: (category) ->
            publicCategories = [100, 101, 102, 103, 104]
            privateCategories = [105]

            onlyCategories = (categoriesArray) ->
                (model) -> _.contains categoriesArray, model.get('provider_type')

            if category is 'public' then unitsInCategory = @unit_list.filter onlyCategories publicCategories
            else if category is 'private' then unitsInCategory = @unit_list.filter onlyCategories privateCategories

            @draw_units(new models.UnitList unitsInCategory)

        fetchAdministrativeDivisions: (params, callback)->
            divisions = new models.AdministrativeDivisionList()
