     @setTabHandleContainer options.tabHandleContainer ? null
 
     @listenWindowResize()
-    
-    @listenTo
-      KDEventTypes        : ["PaneRemoved","paneAdded"]
-      listenedToInstance  : @
-      callback            : @resizeTabHandles
+
+    @on "PaneRemoved", => @resizeTabHandles type : "PaneRemoved"
+    @on "PaneAdded", (pane)=> @resizeTabHandles {type : "PaneAdded", pane}
 
     if options.tabNames?
       @listenTo
         KDEventTypes        : "viewAppended"
         listenedToInstance  : @
         callback            : @createPanes
-          
-  
+
+
   handleMouseDownDefaultAction:(clickedTabHandle,event)->
     for handle,index in @handles
       if clickedTabHandle is handle

    for title in paneTitlesArray
      @addPane pane = new @tabConstructor title : title,null
      pane.setTitle title
  
  addPane:(paneInstance)->
    if paneInstance instanceof KDTabPaneView 
      @panes.push paneInstance
      tabHandleClass = @getOptions().tabHandleView ? KDTabHandleView
      @addHandle newTabHandle = new tabHandleClass

    #   for handle in visibleHandles
    #     handle.$().css width : ((containerSize-50)/visibleHandles.length) - 15

  _windowDidResize:(event)=> @resizeTabHandles event

