       identifier: @credential.identifier
     ).then ({ eventId }) =>
 
-      eventName = "migrate-#{slug}"
-
-      splitted = eventId.split '-'
-      computeController.eventListener.addListener eventName, splitted.last
-
-      handler = ({ percentage }) =>
-        @progressBar.updateBar percentage
-
-        if percentage >= 100
-          computeController.off eventName, handler
-          EnvironmentFlux.actions.loadPrivateStackTemplates().then =>
-            kd.utils.wait 500, @bound 'switchToFinishedView'
-
-      computeController.on eventName, handler
+      eventId = (eventId.split '-').last
+      followEvent { eventName, eventId }
 
     .catch kd.warn
 



module.exports = class MigrateFromSoloAppView extends kd.ModalView

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



    @machines = null
    @credential = null

    @storage = kd.getSingleton('localStorageController').storage 'migrator'

    @mainHeader = new kd.CustomHTMLView
      tagName: 'header'
