Issue #22214: Fixed issue with gear options not showing in narrow screens

Gear options were only being added for modules when the first content panel was selected. Added the buildMenus() function to be called when a module panel is selected.