implemented flash messages