   addTool: (tool) =>
     toolWindow = new ToolWindow
       model: tool
-      collection: @model.tools
     @$el.append toolWindow.render().el
     toolWindow.postDashboardAppend()
 


  onDashboardInit: (@model) =>
    @render()
    @model.tools.on
      'add': @addTool
      'reset': @render

  stopSnap: =>
    @snap.remove() if @snap


  focusWindow: (e) =>
    toolChannel = e.currentTarget.dataset['channel']
    tool = @model.get('tools').find (tool) -> 
      tool.get('channel') is toolChannel
    @model.get('tools').focus tool

  addToolModel: (type) =>
    @model.createTool type
