edit alert box for error