     @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


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

    @subscribeToKloudEvents()


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


  handleDestroy: ->
