Added an event listener system to components.