add alerts and notice to layout