improved flash messages