added flash message on the fly