 
     @addSubView tabHandleContainer
 
-    @addSubView @tabView   = new KDTabView
+    @addSubView @tabView   = new MachineSettingsModalTabView
       hideHandleCloseIcons : yes
       maxHandleWidth       : 190
       tabHandleContainer   : tabHandleContainer

kd                   = require 'kd'
KDView               = kd.View
KDTabView            = kd.TabView
KDModalView          = kd.ModalView
KDTabPaneView        = kd.TabPaneView
KDCustomHTMLView     = kd.CustomHTMLView
KDTabHandleContainer = kd.TabHandleContainer

MachineSettingsSpecsView     = require './machinesettingsspecsview'
MachineSettingsGuidesView    = require './machinesettingsguidesview'
MachineSettingsGeneralView   = require './machinesettingsgeneralview'
MachineSettingsDomainsView   = require './machinesettingsdomainsview'
MachineSettingsAdvancedView  = require './machinesettingsadvancedview'
MachineSettingsDiskUsageView = require './machinesettingsdiskusageview'
MachineSettingsVMSharingView = require './machinesettingsvmsharingview'


  createPanes: ->

    isMachineRunning = @getData().status.state is Machine.State.Running
    disabledTabs     = [ 'Disk Usage', 'Domains', 'VM Sharing' ]

    for item in PANE_CONFIG when item.title and item.viewClass

      subView    = new item.viewClass item.viewOptions, @getData()
      isDisabled = not isMachineRunning and disabledTabs.indexOf(item.title) > -1

      @tabView.addPane pane = new KDTabPaneView
        name     : item.title
        cssClass : 'AppModal-content'
        view     : subView
        disabled : isDisabled

      pane.tabHandle.setClass 'disabled'  if isDisabled
      subView.once 'ModalDestroyRequested', @bound 'destroy'

      @panesByTitle[item.title] = pane

