 
   createStacksViews: ->
 
-    EnvironmentFlux.actions.loadTeamStackTemplates()
-    EnvironmentFlux.actions.loadPrivateStackTemplates()
+    { reactor } = kd.singletons
+    { actions, getters } = EnvironmentFlux
+
+    actions.loadTeamStackTemplates()
+    actions.loadPrivateStackTemplates()
 
     @stacks.addSubView view = new HomeStacksCreate
 


    { mainController, computeController, reactor } = kd.singletons

    kd.singletons.mainController.ready =>
      @createStacksViews()
      @createVMsViews()
      @createCredentialsViews()


    @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 }
