 
   processTemplate: (stackTemplate) ->
 
-    { groupsController } = kd.singletons
-    canEditGroup         = groupsController.canEditGroup()
+    { groupsController, computeController } = kd.singletons
+    canEditGroup = groupsController.canEditGroup()
 
     setToGroup = (method = 'add') =>
 

      computeController.reset yes

      @emit 'Reload'
      @emit 'Completed', stackTemplate  if completed


  handleSetDefaultTemplate: (completed = yes) ->

              Your stack script has been successfully saved.
              You can now close the stack editor or continue editing your stack.
            """

          computeController.checkGroupStacks()

        else
          setToGroup()
