menuGUI: simplify code, slightly reducing the binary size
Simplify code, reducing the binary size.