GUI and file saving bugfixes