added functionality for managing the last saved file path