Added pagination to template, showing only upcoming events.