How to register for the event