creates alert box