menu depth and branching options working

graph is redrawn on option value change