Updated gui.py