adds json data to event controller