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


    { computeController } = KD.singletons

  viewAppended:->

    @addSubView new KDCustomHTMLView


    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'
