added table array of events and pagination buttons