Enable returning to the previous location when loading a file