style and display flash messages