Remove alert boxes when the user nagivates to a different page.