purtifying the GUI