Prompt the user before leaving a page with unsaved project changes