Updating to fix the file reference and change the page after save