       @statusbar
     }
 
-    @logsController = new LogsController
+    @controllers = {}
+
+    @controllers.logs = new LogsController
       editor: @logs
 
-    @variablesController = new VariablesController
+    @controllers.variables = new VariablesController
       editor: @variables
-      logs  : @logsController
+      logs  : @controllers.logs
 
     # SideView for Search and Credentials
-    @credentialsController = new CredentialsController
-      logs  : @logsController
+    @controllers.credentials = new CredentialsController
+      logs  : @controllers.logs
 
     @sideView       = new SideView
       title         : yes

        credentials :
          title     : 'Credentials'
          cssClass  : 'credentials show-controls has-markdown'
          view      : @credentialsController.getView()
          controls  :
            plus    : =>
              @credentialsController.getCredentialAddButton()

    @emit 'ready'


  setTemplateData: (data, reset = no) ->

    { _id: id, title, description, template } = data
    unless id or description or template

      @editor.setContent Encoder.htmlDecode template.rawContent
      @readme.setContent description
      @variables.setContent ''
      @controllers.logs.set 'stack template loaded'

      @_saveSnapshot id
      @_current = id
