Changed alerts to view on each page