fixed the file so alert boxes appear again