Changed events handler to use league/events