 
         toggle_element: ($target_element) ->
             service_id = $target_element.parent().data('service-id')
-            root_id = $target_element.parent().data('root-id')
             unless @selected(service_id) is true
                 service = new models.Service id: service_id
                 service.fetch
                     success: =>
-                        @app_view.add_service_points(service, $target_element.get(0))
+                        @app_view.add_service_points service, $target_element.get(0)
                         #app.commands.execute 'addService', service
             else
                 @app_view.unselect_service service_id

            event.stopPropagation()
            @toggle_element($(event.target))

        show_service: (service) =>
            @collection.expand service.get('parent')
            @service_to_display = service

        get_show_button_classes: (showing, root_id) ->
            if showing
                return "show-button selected service-background-color-#{root_id}"

                    zoom: true
                    draw_marker: true
            else if data.object_type == 'service'
                @parent.add_service_points new models.Service(data)

        show_search_result: (model) ->
            if model.get('object_type') == 'unit'
