added pagination to default templates