     @updatePercentage percentage
     @updateProgressBar percentage
 
-
-  handleStateChangedEvent: (event) ->
+    return  unless percentage is 100
 
     # delay is needed to show 100% in progress bar
     # when destroy process is completed

    if state in ['Building', 'Destroying']
      { eventListener } = kd.singletons.computeController
      eventListener.addListener 'apply', resource._id
      eventListener.addListener 'stateChanged', resource._id


  handleDestroy: ->


    { computeController } = kd.singletons
    computeController.on "apply-#{resource._id}", @bound 'handleProgressEvent'

    @subscribeToKloudEvents()

