 
   toggleArbitraryView : ->
 
-    if @mode is constants.MODE_OXALIS and constants.ALLOWED_ARBITRARY in @allowedModes
+    if @mode is constants.MODE_PLANE_TRACING and constants.ALLOWED_ARBITRARY in @allowedModes
       @planeController.stop()
       @arbitraryController.start()
       @propagateMode(constants.MODE_ARBITRARY)
     else if @mode is constants.MODE_ARBITRARY and constants.ALLOWED_OXALIS in @allowedModes
       @arbitraryController.stop()
       @planeController.start()
-      @propagateMode(constants.MODE_OXALIS)
+      @propagateMode(constants.MODE_PLANE_TRACING)
 
 
   propagateMode : (mode) ->

      @initMouse()
      @initKeyboard()

      @propagateMode(constants.MODE_OXALIS)

      if constants.ALLOWED_OXALIS not in @allowedModes
        if constants.ALLOWED_ARBITRARY in @allowedModes


  centerActiveNode : ->

    if @mode is constants.MODE_PLANE_TRACING
      @planeController.centerActiveNode()
    else
      @arbitraryController.centerActiveNode()
