         nodeClick : (id) => @setActiveNode(id, true, false)
 
       $("#comment-input").on "change", (event) => 
-        @setComment(event.target.value)
+        @model.route.setComment(event.target.value)
         $("#comment-input").blur()
 
       $("#comment-previous").click =>

        @setActiveNode($(event.target).data("nodeid"), true, false)

      $("#tree-name-submit").click (event) =>
        @setTreeName($("#tree-name-input").val())

      $("#tree-name-input").keypress (event) =>
        if event.which == 13

    model.binary.updateContrastCurve(gui.settings.brightness, gui.settings.contrast)

    gui.on
      deleteActiveNode : @model.route.deleteActiveNode
      setActiveTree : (id) => @setActiveTree(id, false)
      setActiveNode : (id) => @setActiveNode(id, false) # not centered

    gui


  setActiveTree : (treeId, centered) ->
