add register for events