handled flash messages