 
   getRoutes =->
     mainController = KD.getSingleton 'mainController'
+
+    openApp       = @createContentDisplayHandler 'Apps'
+    openActivity  = @createContentDisplayHandler 'Activity'
+    openMember    = @createContentDisplayHandler 'Members'
+    openGroup     = @createContentDisplayHandler 'Groups'
+    openTopic     = @createContentDisplayHandler 'Topics'
     
     routes =
 

      new KDNotificationView title: "You're already here!"
      console.trace()

  cleanupRoute:(contentDisplay)->
    delete @openRoutes[@openRoutesById[contentDisplay.id]]

  handleRoute =(groupId, route)->
    console.log 'invoking a route by group id...'



  getDefaultRoute:-> '/Activity'

  setPageTitle:(title="Koding")->
    document.title = title

  openContent:(name, section, state, route)->
    @setPageTitle getContentTitle state
    appManager.tell section, 'createContentDisplay', state, (contentDisplay)=>
      @openRoutes[route] = contentDisplay
      @openRoutesById[contentDisplay.id] = route
