Added a notification box when leaving the page