change events to config.xml