homeGUI: reorder code