     super options, data
 
     @createElements()
-    @keysRef    = @workspaceRef.child "keys"
-    @indexRef   = @workspaceRef.child "index"
-    @requestRef = @workspaceRef.child "request"
-    @stateRef   = @workspaceRef.child "state"
+    @openIndexes = {}
+
+    @keysRef     = @workspaceRef.child "keys"
+    @indexRef    = @workspaceRef.child "index"
+    @requestRef  = @workspaceRef.child "request"
+    @stateRef    = @workspaceRef.child "state"
 
     @listenChildRemovedOnKeysRef()
     @listenRequestRef()


    KD.mixpanel "Teamwork tab browser, click"

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

    @keysRef.on "child_removed", (snapshot) =>
      data = snapshot.val()
      return unless data
      {indexKey} = data

      for pane in @tabView.panes when pane
        paneIndexKey = pane.getOption "indexKey"
        if paneIndexKey is indexKey
          @tabView.removePane pane
          delete @openIndexes[paneIndexKey]

  bindRemoteEvents: ->
    @listenPaneDidShow()
