Added save to file from GUI