Reorganize code, slightly reducing the binary size.
homeGUI: simplify code a bit