styling flash messages, and some cleanup