fully implemented buttonIsPressed and modeSelect cases