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

    @updatePercentage percentage
    @updateProgressBar percentage


  handleStateChangedEvent: (event) ->

    # delay is needed to show 100% in progress bar
    # when destroy process is completed

    resource              = @getData()
    { computeController } = kd.singletons
    computeController.off "apply-#{resource._id}", @bound 'handleProgressEvent'

    super

