listens to events succesfully