         return
 
       reactor.dispatch actions.CREATE_STACK_TEMPLATE_SUCCESS, { stackTemplate }
+      _bindTemplateEvents stackTemplate
       resolve { stackTemplate }
 
 

  remote.api.JStackTemplate.some query, { limit: 30 }, (err, templates) ->

    if err
      reactor.dispatch actions.LOAD_TEAM_STACK_TEMPLATES_FAIL, { query, err }

    templates = templates.filter (t) -> t.accessLevel is 'group'

    reactor.dispatch actions.LOAD_TEAM_STACK_TEMPLATES_SUCCESS, { query, templates }

    templates.forEach (template) ->
      template.on 'deleteInstance', ->
        reactor.dispatch actions.REMOVE_STACK_TEMPLATE_SUCCESS, { template }


loadPrivateStackTemplates = ->


    reactor.dispatch actions.LOAD_PRIVATE_STACK_TEMPLATES_SUCCESS, { query, templates }

    templates.forEach (template) -> _bindTemplateEvents template


setMachineAlwaysOn = (machineId, state) ->
