     @checkAndBootstrapCredentials (err, credentials) =>
       return  @saveButton.hideLoader()  if err
 
-      @outputView
+      @stackTemplateView.outputView
         .add 'Credentials are ready!'
         .add 'Saving current template content...'
 
       @saveTemplate (err, stackTemplate) =>
 
-        if @outputView.handleError err
+        if @stackTemplateView.outputView.handleError err
           @saveButton.hideLoader()
           return
 
-        @outputView.add 'Template content saved now processing the template...'
+        @stackTemplateView.outputView.add 'Template content saved now processing the template...'
 
         @handleCheckTemplate { stackTemplate }, (err, machines) =>
 
           @saveButton.hideLoader()
 
           if err
-            @outputView.add "Parsing failed, please check your
+            @stackTemplateView.outputView.add "Parsing failed, please check your
                              template and try again"
             return
 
-          @outputView.add "You can now close this window, or set this
+          @stackTemplateView.outputView.add "You can now close this window, or set this
                            template as default for your team members."
 
           @cancelButton.setTitle 'Close'

        console.log '[KLOUD:checkTemplate]', err, response

        if err or not response
          @outputView
            .add 'Something went wrong with the template:'
            .add err?.message or 'No response from Kloud'



  handlePreview: ->

    template      = @stackTemplateView.editorView.getValue()

    group         = kd.singletons.groupsController.getCurrentGroup()
    account       = whoami()
