Try menu selection evaluation.
Fix variable scopes.
Drop debug output.
Fix axis menu label to show the selected branch.