Showing alert when user leaves the page.