 
     running = data.status.state in [ Running, Starting ]
     storage = data.jMachine.meta.storage_size ? "0"
+    { providers } = KD.config
 
     options             = KD.utils.extend options,
       title             : 'Configure Your VM'

          defaultValue  : running
          itemClass     : KodingSwitch
          cssClass      : "tiny"
          callback      : (state) =>
            if state
            then computeController.start data
            else computeController.stop data
            @destroy()
        publicIp        :
          label         : "Public IP"
          cssClass      : if running then "custom-link-view" else "hidden"


    { computeController } = KD.singletons

    @machine = @getData()

    @on 'StateChange', (state)=>
      if state then computeController.start @machine
      else computeController.stop @machine
      @destroy()


  viewAppended:->

    @addSubView new KDCustomHTMLView
