Added alert functionality to index page.