Minor improvement to menu bar control code

A minor addition to my original submit for menu bar control code rework.