customise alerts and error messages