Adding event handler component.