       if (///^#{route}///.test nav.data.path) \
       or (nav.data.path is "/#{name}") or ("/#{name}" is nav.data.path)
         nav.setState state
+        @navController.selectItem nav  if select
         hasNav = yes
 
     unless hasNav


  setNavItemState:({name, route, options}, state)->

    options or= {}
    route   or= options.navItem?.path or '-'



      appManager.on "AppUnregistered", (name, options) =>
        @setNavItemState {name, options}, 'initial'

      appManager.on "AppIsBeingShown", (instance, view, options) =>
        @setNavItemState {name:options.name, options}, 'active'
