 
     @tabView.showPane @stacks
 
+    # @tabView.on 'PaneDidShow', (pane) ->
+    #   { router } = kd.singletons
+    #   path = router.getCurrentPath()
+    #   router.handleRoute "/Home/Stacks/#{kd.utils.slugify pane.name}"
+
     kd.singletons.mainController.ready =>
       @createStacksViews()
       @createVMsViews()


  handleAction: (action) ->

    unless tab = @tabView.getPaneByName action
      _kd.singletons.router.handleRoute '/Home/Stacks/List'
    else
      @tabView.showPane tab


  createStacksViews: ->

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

HomeVirtualMachinesVirtualMachines = require '../virtualmachines/homevirtualmachinesvirtualmachines'
HomeVirtualMachinesConnectedMachines = require '../virtualmachines/homevirtualmachinesconnectedmachines'
HomeVirtualMachinesSharedMachines = require '../virtualmachines/homevirtualmachinessharedmachines'

HomeAccountCredentialsView = require '../account/credentials/homeaccountcredentialsview'
EnvironmentFlux = require 'app/flux/environment'


