     spy.docView = docView
     spy.outlineView = outlineView
 
-    cmTaskpaper.title.text = 'CodeMirror View'
     panel.insertRight(cmTaskpaper)
     panel.insertBottom(coffeeconsole, cmTaskpaper)
     panel.insertLeft(linkViewWidget)
+
+    spy.ctp = spy.cmTaskpaper = cmTaskpaper
+    spy.cc = spy.coffeeconsole = coffeeconsole
+    spy.lvw = spy.cmTaskpaper = linkViewWidget
 
 
     panel.attach(document.body)


    coffeeconsole = new CoffeeConsoleWidget()
    coffeeconsole.title.text = 'CoffeeScript REPL'

    linkViewWidget = new LinkViewWidget(syncMaster)
    linkViewWidget.title.text = 'Link View'

        gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter']
        tabSize: 4
    })
    cmTaskpaper.title.text = 'CodeMirror View'
    cmTaskpaper.title.closable = true

    # Initialize CodeMirror document
    doc = cmTaskpaper.editor.doc
