add event register function