 
     super options, data
 
-    listView     = new EnvironmentList
-    controller   = new EnvironmentListController
-      view              : listView
-      wrapper           : no
-      selected          : options.selected
-      scrollView        : no
-      noItemFoundWidget : new kd.CustomHTMLView
-        cssClass        : 'no-item-found'
-        partial         : "You don't have any #{if isKoding() then 'machines' else 'stacks'}."
+    controller  = new EnvironmentListController { selected : options.selected }
+    listView    = controller.getListView()
 
     if checkFlag 'super-admin' and isKoding()
 

showError                 = require 'app/util/showError'
checkFlag                 = require 'app/util/checkFlag'
StacksModal               = require 'app/stacks/stacksmodal'
EnvironmentList           = require './environmentlist'
KDCustomScrollView        = kd.CustomScrollView
EnvironmentListController = require './environmentlistcontroller'


    @wrapper.addSubView controller.getView()

    listView.on 'ModalDestroyRequested', @bound 'destroyModal'
    listView.on 'DestroyYourStacksView', @bound 'destroy'

    whoami().isEmailVerified? (err, verified) ->
      if err or not verified
        for item in controller.getListItems()
          item.emit 'ManagedMachineIsNotAllowed'


  destroyModal: (goBack = yes, dontChangeRoute = no) ->
