updated flash messages and styling