remove flash messages when changing pages