tried to fix some bugs with the GUI (failed)