     @mainTabView.on "AllPanesClosed", ->
       KD.getSingleton('router').handleRoute "/Activity"
 
-    @contentPanel.addSubView @mainTabView
-    @contentPanel.addSubView @mainTabHandleHolder
-    @contentPanel.addSubView @appSettingsMenuButton
+    @panelWrapper.addSubView @mainTabView
+    # @contentPanel.addSubView @appSettingsMenuButton
 
   createSideBar:->
 

    @createMainPanels()
    @createMainTabView()
    @setStickyNotification()
    @createSideBar()
    @createChatPanel()
    @listenWindowResize()

    @utils.defer =>
      @_windowDidResize()
      @emit 'ready'

  bindPulsingRemove:->
    router     = KD.getSingleton 'router'
    appManager = KD.getSingleton 'appManager'


        KD.utils.stopDOMEvent event
        KD.getSingleton('router').handleRoute "/Login"

    # REFACTOR NOTE: this put the group name next to logo

    # if entryPoint?.slug? and entryPoint.type is "group"
    #   KD.remote.cacheable entryPoint.slug, (err, models)=>
    #     if err then callback err
    #     else if models?
    #       [group] = models
    #       @logo.updatePartial "<cite></cite>#{group.title}"

  createMainNavigation:->

    @navController = new MainNavController
      view           : new NavigationList
        domId        : 'main-nav'
        testPath     : 'navigation-list'
        type         : 'navigation'
        itemClass    : NavigationLink
        testPath     : 'navigation-list'
      wrapper        : no
      scrollView     : no
    ,
      id        : "navigation"
      title     : "navigation"
      items     : []

    @header.wrapper.addSubView @navController.getView()

  createMainTabView:->

    @appSettingsMenuButton = new AppSettingsMenuButton
    @appSettingsMenuButton.hide()

    @mainTabView = new MainTabView
      domId               : "main-tab-view"
      listenToFinder      : yes
      delegate            : this
      slidingPanes        : no
      hideHandleContainer : yes

    @mainTabView.on "PaneDidShow", =>
      appManager   = KD.getSingleton "appManager"
      appManifest  = appManager.getFrontAppManifest()
      forntAppName = appManager.getFrontApp().getOptions().name
      menu         = appManifest?.menu or KD.getAppOptions(forntAppName)?.menu
      if Array.isArray menu
        menu = items: menu
      if menu?.items?.length
