adding function to open and save file paths