added appearance of flash messages