 
   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

      '/:name?/Recover'   : ({params:{name}})-> mainController.doRecover name

      # nouns
      '/:name?/Groups'    : ({params:{name}, query})-> go 'Groups'  , name, query
      '/:name?/Activity'  : ({params:{name}, query})-> go 'Activity', name, query
      '/:name?/Members'   : ({params:{name}, query})-> go 'Members' , name, query
      '/:name?/Topics'    : ({params:{name}, query})-> go 'Topics'  , name, query
      '/:name?/Develop'   : ({params:{name}, query})-> go 'StartTab', name, query
      '/:name?/Apps'      : ({params:{name}, query})-> go 'Apps'    , name, query
      '/:name?/Account'   : ({params:{name}, query})-> go 'Account' , name, query

      # content displays:
      '/:name?/Topics/:topicSlug'       : @createContentDisplayHandler 'Topics'
      '/:name?/Activity/:activitySlug'  : @createContentDisplayHandler 'Activity'
      '/:name?/Apps/:appSlug'           : @createContentDisplayHandler 'Apps'

      '/recover/:recoveryToken': ({params:{recoveryToken}})->
        mainController.appReady ->

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

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

