     MENU = new kd.ContextMenu menuOptions, menuItems
 
     MENU.once 'KDObjectWillBeDestroyed', -> kd.utils.wait 50, -> MENU = null
-
-
-  setActiveInvitationMachineId: ->
-
-    { setActiveInvitationMachineId } = EnvironmentFlux.actions
-
-    if @state.requiredInvitationMachine
-      setActiveInvitationMachineId { machine : @state.requiredInvitationMachine }
 
 
   prepareStacks:  ->

      sharedMachines               : EnvironmentFlux.getters.sharedMachines
      collaborationMachines        : EnvironmentFlux.getters.collaborationMachines
      activeLeavingSharedMachineId : EnvironmentFlux.getters.activeLeavingSharedMachineId
      requiredInvitationMachine    : EnvironmentFlux.getters.requiredInvitationMachine
      differentStackResourcesStore : EnvironmentFlux.getters.differentStackResourcesStore
      templates                    : EnvironmentFlux.getters.allStackTemplates
      selectedTemplateId           : EnvironmentFlux.getters.selectedTemplateId


    SidebarFlux.actions.loadVisibilityFilters().then =>

      EnvironmentFlux.actions.loadMachines()
      EnvironmentFlux.actions.loadStackTemplates()
      EnvironmentFlux.actions.loadStacks().then =>
        @setState { isLoading: no }
