 
     @menu = {}
 
-    appManager = KD.singleton "appManager"
-
-    appManager.on 'AppIsBeingShown', @bound 'setActiveItem'
+    {mainView} = KD.singletons
+    mainView.on 'MainTabPaneShown', @bound 'setActiveItem'
 
 
   viewAppended: ->


  createItem: (options) ->

    options.cssClass = options.appName.toLowerCase()

    @addSubView @menu[options.appName] = new CustomLinkView options


  setActiveItem: (instance, view, options) ->

    @unsetActiveItems()

    appName = options.name

    @menu[appName]?.setClass 'active'


  unsetActiveItems: ->

module.exports = class TopNavigation extends KDCustomHTMLView

  menu = [
    { title : 'ABOUT',     href : '/About',     name : 'about'}
    { title : 'PRICING',   href : '/Pricing',   name : 'pricing'}
  ]

  constructor: (options = {}, data) ->
