fixed callback to be called with component as the this and receive the event as a param