 
       listKites: (data) =>
 
-        {list, button_add,
-         button_reload, message, loader} = view.addTo @container,
+        container       = view.addTo @container,
           instructions  : 'install'
           list          : { data }
           button_add    :

            cssClass    : 'green'
            loader      : yes
            callback    : =>
              kite = list.controller.selectedItems.first.getData()
              if kite.machine
                message.show()
              else
                message.hide()
                @createMachine kite
          button_reload :
            iconOnly    : yes
            cssClass    : 'retry'
            callback    : =>
              button_reload.hide()
              message.hide()
              loader.show()
              @fetchKites()
          loader        :
            cssClass    : 'inline'
          message       :
            text        : 'This kite is in use.'
            cssClass    : 'inline hidden'

        list.controller
          .on 'ItemDeselectionPerformed', ->

          .on 'ItemSelectionPerformed', button_add.bound 'enable'


  createMachine: (kite, container)->

    {createMachine} = require './helpers'
    createMachine kite, (err, machine)=>

      showError = require 'app/util/showError'
      {message, button_add} = container

      if err

        if err.name is 'UsageLimitReached'
          message.updatePartial err.message
          message.show()
        else
          showError err

        button_add.hideLoader()

        return

      kd.utils.defer ->
        kd.singletons.router.handleRoute "/IDE/#{machine.slug}"

      @destroy()
