adds subscribe method to attach listeners to events instead of adding handlers in setup methods