Change the alert function