made it so that there is alert if the page does not properly work