add flash messages to layout template