 
   handleAction: (action) ->
 
-    unless tab = @tabView.getPaneByName action
-      _kd.singletons.router.handleRoute '/Home/Stacks/List'
-    else
-      @tabView.showPane tab
+    for pane in @tabView.panes when kd.utils.slugify(pane.name) is action
+      pane_ = @tabView.showPane pane
+      break
+
+
 
 
   createStacksViews: ->


    @tabView.showPane @stacks

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

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'


