Revert switch submenuVisibility, implement new method

Previous changes caused breakages
New method converts pure numeric submenuVisibility values to strings