add flash notices to layout