add controller for event api