 
     data = @getData()
 
-    for {name, lazy, itemClass} in tabData
-      @tabs.addPane new KDTabPaneView {
-        view : {itemClass, data}
-        name
-        lazy
-      }
+    for {name, viewOptions} in tabData
+      @tabs.addPane new KDTabPaneView {name, viewOptions}
 
   _windowDidResize:->
     contentHeight = @getHeight() - @header.getHeight()

class EnvironmentsMainView extends JView

  tabData = [
    { name : 'VMs',              lazy : no,   itemClass : VMMainView }
    { name : 'Domains',          lazy : yes,  itemClass : DomainMainView }
  ]

  navData =


  constructor:(options={}, data)->

    data or= {}
    super options, data

