         didSet {
             svgView?.svgDocument = svgDocument
             if let svgDocument = svgDocument {
-                root = [ObjectAdaptor(object:svgDocument, template:treeNodeTemplate())]
+                root = [ObjectAdaptor(object:svgDocument, template:ViewController.treeNodeTemplate())]
             }
             summaryViewController.svgDocument = svgDocument
         }

        }
    }

    func treeNodeTemplate() -> ObjectAdaptor.Template {
        var template = ObjectAdaptor.Template()
        template.childrenGetter = {
            (element:AnyObject) -> [AnyObject] in

        svgView.elementSelected = {
            (svgElement:SVGElement) -> Void in
            self.treeController.setSelectionIndexPaths([svgElement.indexPath])
        }

        svgView.renderer.callbacks.prerenderElement = {
