added flash message and message styling