cleaned up the flash messages