             vmName   : KD.getSingleton("vmController").defaultVmName
 
     @workspace.addToHistory "$0 opened a new terminal"
+    @registerPaneRemoveListener_ pane
 
   createPreview: (sessionKey, indexKey) ->
     indexKey = indexKey or @createSessionKey()

        indexKey  : indexKey

    @workspace.addToHistory "$0 opened a new editor"  if isLocal

  openFile: (file, content) ->
    @createEditor file, content

        indexKey  : indexKey

    @workspace.addToHistory "$0 opened a new browser"
    @registerPaneRemoveListener_ pane

  createChat: ->
    pane = new KDTabPaneView title: "Chat"
