 
     @createStateLabel()
 
-    if @state in ['Stopped', 'Running', 'NotInitialized', 'Terminated', 'Unknown']
+    if @state in [ Stopped, Running, NotInitialized, Terminated, Unknown ]
       @createStateButton()
-    else if @state in [ 'Starting', 'Building', 'Stopping' ]
+    else if @state in [ Starting, Building, Stopping ]
       @createLoading()
 
     @createFooter()  unless @footer

class IDE.MachineStateModal extends IDE.ModalView

  constructor: (options = {}, data) ->



    @buildViews()

    computeController = KD.getSingleton 'computeController'

    stateUpdater = (event) =>

      {status} = event
      return  if status is @state

      @state = status
      @buildViews()

    computeController.on "start-#{@machineId}", stateUpdater
    computeController.on "build-#{@machineId}", stateUpdater

    @show()

