styled and refactored flash messages