Fixed save to file with new GUI