       items        : []
 
 
-    @vmsList = new KDListViewController
-      wrapper             : no
-      scrollView          : no
-      startWithLazyLoader : yes
-      itemClass           : NavigationVMItem
-      lazyLoaderOptions   : loaderOptions
-    ,
-      id           : 'vms'
-      title        : 'vms'
-      items        : []
-
-    @vmsList.getListView().on 'VMCogClicked', (vm, item)->
-      {mainView} = KD.singletons
-      mainView.openVMModal vm, item
-
     # {mainController} = KD.singletons
     # mainController.ready @bound 'accountChanged'
 

          @addItem { title : name, path, \
                     order : 60 + KD.utils.uniqueId(), type :"" }

  listVMs: (vms) ->

    @vmsList.hideLazyLoader()

    @vmsList.addItem vm  for vm in vms


  loadView: (dock) ->

    dock.addSubView new KDCustomHTMLView
      tagName  : 'h3'
      cssClass : 'sidebar-title'
      partial  : 'MY APPS'

    dock.addSubView @navController.getView()
    dock.addSubView new CustomLinkView
      icon     : no
      cssClass : 'add-vm'
      title    : '+ Add more apps'
      href     : '/Apps'

    dock.addSubView new KDCustomHTMLView
      tagName  : 'h3'
      cssClass : 'sidebar-title'
      partial  : 'MY VMs'

    dock.addSubView @vmsList.getView()
    dock.addSubView new CustomLinkView
      icon     : no
      cssClass : 'add-vm'
      title    : '+ Add another VM'
      click    : ->
        # fixme: this is a temp solution


  refreshSidebarVMs: ->
    @fetchVMs (vms) =>
      @vmTree.removeAllNodes()
      @listVMs vms

  getRelativeItem: (increment, predicate) ->
