     @layout = ndpane(16)
     @layoutMap = new Array(16*16)
 
-    {windowController} = kd.singletons
+    {windowController, appManager} = kd.singletons
     windowController.addFocusListener @bound 'setActivePaneFocus'
 
     @workspace.once 'ready', => @getView().addSubView @workspace.getView()
 
-    kd.singletons.appManager.on 'AppIsBeingShown', (app) =>
+    appManager.on 'AppIsBeingShown', (app) =>
 
       return  unless app instanceof IDEAppController
 

      else
        @addInitialViews()

      { mainView, onboardingController } = kd.singletons

      data = { machine, workspace: @workspaceData }
      mainView.activitySidebar.selectWorkspace data

      onboardingController.runOnboarding 'IDE'

      @emit 'IDEReady'


      # Temporary fix for IDE is not shown after
      # opening pages which uses old SplitView.
      # TODO: This needs to be fixed. ~Umut
      windowController.notifyWindowResizeListeners()

      @resizeActiveTerminalPane()

      {onboardingController} = kd.singletons
      onboardingController?.runOnboarding 'IDE'  if appManager.frontApp is this and @isMachineRunning()


  prepareIDE: (withFakeViews = no) ->
