Added EventsIndex function and corresponding api call