added pagination to books index