gui.py clean-up