 
   renderMachines: (machines, callback = noop)->
 
-    @machineTree.removeAllNodes()
-    @listMachines machines
-
-    @selectWorkspace()
+    # @machineTree.removeAllNodes()
+    # @listMachines machines
+
+    # @selectWorkspace()
     callback()
 
 

      callback machines


  addVMTree: ->

    @addSubView section = new KDCustomHTMLView
      tagName  : 'section'
      cssClass : 'vms'

    @machineTree = new JTreeViewController
      type                : 'main-nav'
      treeItemClass       : NavigationItem
      addListsCollapsed   : yes

    @machineTree.getView().unsetClass 'kdscrollview'

    # This is temporary, we will create a separate TreeViewController
    # for this and put this logic into there ~ FIXME ~ GG
    @machineTree.dblClick = (nodeView, event)->
      machine = nodeView.getData()
      if machine.status?.state is Machine.State.Running
        @toggle nodeView

    section.addSubView header = new KDCustomHTMLView
      tagName  : 'h3'
      cssClass : 'sidebar-title'
      partial  : 'VMs'
      click    : @bound 'handleMoreVMsClick'

    header.addSubView new CustomLinkView
      cssClass : 'add-icon buy-vm'
      title    : ' '

    section.addSubView @machineTree.getView()

    @machineTree.on 'NodeWasAdded', (machineItem) =>
      machineItem.on 'click', @lazyBound 'handleMachineItemClick', machineItem

    if KD.userMachines.length
    then @listMachines (new Machine machine: (KD.remote.revive machine) for machine in KD.userMachines)
    else @fetchMachines @bound 'listMachines'


  handleMachineItemClick: (machineItem, event) ->

            id           : workspace._id
            parentId     : machine.getId()

    # for data in treeData

    #   node = @machineTree.addNode data

    #   @mapWorkspaceWithChannel data, node  if data.type is 'workspace'

    @emit 'MachinesListed'

