fixed alert so it hides when navigating