generate the events page