Testing to see if the alert is what causes a page refresh