fixed bug where alert boxes where not showing up