close flash message on click