Adding flash alerts and notices to layout file