 
   createForm: ->
 
+    isAws     = @machine.provider is 'aws'
     running   = @machine.status.state in [ Running, Starting ]
     accessUri = "http://#{@machine.domain}"
+    isManaged = @machine.isManaged()
 
     @addSubView @form = new KDFormViewWithFields
       cssClass          : 'AppModal-form'
       fields            :
         statusToggle    :
-          cssClass      : if @machine.isManaged() then 'hidden'
+          cssClass      : if isManaged then 'hidden'
           label         : 'On/Off'
           defaultValue  : running
           itemClass     : KodingSwitch

          partial       : @machine.ipAddress or 'N/A'
        accessUri       :
          label         : 'Assigned URL'
          cssClass      : if @machine.isManaged() then 'assigned-url hidden' else 'assigned-url'
          itemClass     : CustomLinkView
          title         : @machine.domain
          href          : accessUri

          label         : 'Keep VM always on'
          defaultValue  : @machine.alwaysOn
          itemClass     : KodingSwitch
          cssClass      : if isManaged then 'statustoggle hidden' else 'statustoggle'
          disabled      : @machine.isPermanent()
          callback      : @bound 'handleAlwaysOnStateChanged'
        nickname        :
