Added flash messages to layout