     options.cssClass = 'domain-vm-item'
     super options, data
 
-    listViewData   = @getDelegate().getData()
-    switchStatus   = off
-    for hostnameAlias in @getData().hostnameAlias
-      if hostnameAlias in listViewData.hostnameAliases
-        switchStatus = on
-
-    domainInstance = listViewData.domain
+    {hostnameAlias} = @getData()
+    listViewData    = @getDelegate().getData()
+    switchStatus    = hostnameAlias in listViewData.hostnameAliases
+    domainInstance  = listViewData.domain
 
     @onOff = new KDOnOffSwitch
       size        : 'small'

      defaultValue: switchStatus
      callback : (state) =>
        domainInstance.bindVM
          vmName     : @getData().name
          state      : state
        , (err) =>
          unless err
            {name} = @getData()
            notificationMsg = if state
            then "Your domain is connected to the #{name} VM."
            else "Your domain is disconnected from the #{name} VM."
            new KDNotificationView
              type     : "mini"
              cssClass : "success"

  pistachio:->
    """
    <span class="vm-icon personal"></span>
    <span class="vm-name">{{ #(hostnameAlias) }}</span>
    {{> @onOff }}
    """