Adding pagination to entries page