Added pagination for books