     @createMainPanels()
     @createMainTabView()
     @setStickyNotification()
-    @createSideBar()
-    @createChatPanel()
-    @listenWindowResize()
-
-    @utils.defer =>
-      @_windowDidResize()
-      @emit 'ready'
+
+    @utils.defer => @emit 'ready'
+
+    mainController = KD.getSingleton 'mainController'
+    mainController.ready @bound 'accountChanged'
+
+
+  accountChanged:->
+
+    @navController.reset()
+
 
   bindPulsingRemove:->
+
     router     = KD.getSingleton 'router'
     appManager = KD.getSingleton 'appManager'
 

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

    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 "<span></span>#{group.title}"


  createMainTabView:->

    @mainTabHandleHolder = new MainTabHandleHolder
      domId    : "main-tab-handle-holder"
      cssClass : "kdtabhandlecontainer"
      delegate : this

    @appSettingsMenuButton = new AppSettingsMenuButton
    @appSettingsMenuButton.hide()

    @mainTabView = new MainTabView
      domId              : "main-tab-view"
      listenToFinder     : yes
      delegate           : this
      slidingPanes       : no
      tabHandleContainer : @mainTabHandleHolder
    ,null

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

    @mainTabView.on "AllPanesClosed", ->
      KD.getSingleton('router').handleRoute "/Activity"

    @panelWrapper.addSubView @mainTabView
    # @contentPanel.addSubView @appSettingsMenuButton

  createSideBar:->

