 
     fNodes = @gui.addFolder("Nodes")
     @activeNodeIdController = @addNumber(fNodes, @settings, "activeNodeID",
-      1, 1, "Active Node ID")
+      1, 1, "Active Node ID", (value) => @trigger( "setActiveNode", value))
     @addFunction(fNodes, @settings, "deleteActiveNode", "Delete Active Node")
 
     #fControls.open()


    fTrees = @gui.addFolder("Trees")
    @activeTreeIdController = @addNumber(fTrees, @settings, "activeTreeID",
      1, 1, "Active Tree ID")
    if somaClickingAllowed
      @addCheckbox(fTrees, @settings, "newNodeNewTree", "Soma clicking mode")
    else

    return (folder.add object, propertyName)
                          .name(displayName)

  addNumber : (folder, object, propertyName, min, step, displayName, onChange) =>
    unless onChange?
      onChange = (v) => @set(propertyName, v, Number)
    return (folder.add object, propertyName)
                          .min(min)
                          .step(step)
                          .name(displayName)
                          .onChange(onChange)

  saveNow : =>
    @user.pushImpl()
