 
     @buildViews()
 
-    KD.getSingleton('computeController').on "start-#{@machineId}", (event) =>
+    computeController = KD.getSingleton 'computeController'
+
+    stateUpdater = (event) =>
+
       {status} = event
-      return if status is @state
+      return  if status is @state
 
       @state = status
       @buildViews()
 
-    KD.getSingleton('computeController').on "build-#{@machineId}", (event) =>
-      {status} = event
-      return if status is @state
-
-      @state = status
-      @buildViews()
+    computeController.on "start-#{@machineId}", stateUpdater
+    computeController.on "build-#{@machineId}", stateUpdater
 
     @show()
 

      methodName   = 'start'
      nextState    = 'Starting'

      if @state in [ 'NotInitialized', 'Terminated', 'Unknown' ]
        methodName = 'build'
        nextState  = 'Building'



    @createStateLabel()

    if @state in [ Stopped, Running, NotInitialized, Terminated, Unknown ]
      @createStateButton()
    else if @state in [ Starting, Building, Stopping ]
      @createLoading()

    @createFooter()  unless @footer
