Add flash notices to layout view