added some file io to gui