added the flash messages