refixed gui.py