Add flash messages to layout