add register event