changes to error template