Saves current file and switches when a new file is created; for convenience
Saves current file and switches when a new file is created; for convenience