Added modal function to create alert.