ProcGUI: refactored how the mode button is handled