fixing alert boxes