 
     KD.utils.defer =>
       @previewApp yes; @previewCss yes
+
+  switchMode: (mode = 'develop')->
+
+    @_currentMode = mode
+
+    # FIXME welcomePage show/hide logic ~ GG
+    switch mode
+      when 'home'
+        @welcomePage.show()
+        KD.utils.defer @welcomePage.lazyBound 'unsetClass', 'out'
+      else
+        @welcomePage.setClass 'out'
+        KD.utils.wait 500, @welcomePage.bound 'hide'
 
 class DevToolsEditorPane extends CollaborativeEditorPane
 

              editor            : "JSEditor"
              handleFileOpen    : (file, content) =>

                {CSSEditor, JSEditor} = @workspace.activePanel.panesByName

                switch FSItem.getFileExtension file.path

      JSEditor.loadFile  "[#{vmName}]#{appPath}/index.coffee"
      CSSEditor.loadFile "[#{vmName}]#{appPath}/resources/style.css"

      @switchMode 'develop'

  publishCurrentApp:->

    {JSEditor} = @workspace.activePanel.panesByName
