rendering books and pagination