click on flashMessages to hide them