renaming event api in client event handler