got working flash messages to display