Added handlers for events
called custom events instead of the methods directly