return events json in EventController