Use a unique ID when registering the event handlers.