 
     { mainController, computeController, reactor } = kd.singletons
 
-    kd.singletons.mainController.ready =>
+    mainController.ready =>
       @createStacksViews()
       @createVMsViews()
       @createCredentialsViews()

HomeStacksCreate = require './homestackscreate'
HomeStacksTeamStacks = require './homestacksteamstacks'
HomeStacksPrivateStacks = require './homestacksprivatestacks'
HomeStacksDrafts = require './homestacksdrafts'
HomeStacksTabHandle = require './homestackstabhandle'



    @stacks.addSubView headerize 'Private Stacks'
    @stacks.addSubView sectionize 'Private Stacks', HomeStacksPrivateStacks, { delegate : this }

    @stacks.addSubView disabledUsersHeader = headerize 'Disabled User Stacks'
    @stacks.addSubView disabledUsersSection = sectionize 'Disabled User Stacks', HomeStacksDisabledUsers, { deletage: this }

    showDisabledUsers = ->
      disabledUsersHeader.show()
      disabledUsersSection.show()

    hideDisabledUsers = ->
      disabledUsersHeader.hide()
      disabledUsersSection.hide()


    cleanObserver = reactor.observe getters.disabledUsersStackTemplates, (templates) ->
      if templates.size
      then showDisabledUsers()
      else hideDisabledUsers()

    hideDisabledUsers()

    @once 'KDObjectWillBeDestroyed', cleanObserver

    @stacks.addSubView headerize 'Drafts'
    @stacks.addSubView sectionize 'Drafts', HomeStacksDrafts, { delegate : this }
