add flash messages to homepage