move alerts to layout