changed template to fit warning event