add flash messages on events