 
   createStateButton: ->
 
+    # Don't display run button for managed vms
+    return  if @isManaged
+
     if @state in [Terminated, 'NotFound']
       title    = 'Create a new VM'
       callback = 'requestNewMachine'
 
       if not isKoding()
-        {groupsController} = kd.singletons
+        { groupsController } = kd.singletons
         return  unless groupsController.currentGroupHasStack()
 
-    else if @isManaged
-      # Display no button for managed.
-      return
+    else if not isKoding() and @stack
+      title    = 'Build Stack'
+      callback = 'turnOnMachine'
     else
       title    = 'Turn it on'
       callback = 'turnOnMachine'

    @container.addSubView @actionButton


  buildViews: (response)->

    return  if @_busy


  turnOnMachine: ->

    computeController = kd.getSingleton 'computeController'
    target            = @machine

    if not isKoding() and @stack

      if @state is NotInitialized
        action = 'buildStack'
        target = @stack

      if @machine.jMachine.generatedFrom?.templateId?
        return  unless computeController.verifyStackRequirements @stack

    computeController.off  "error-#{target._id}"

