Move api calls to event page