Adding flash alerts to layout