customize alerts and error messages