setting up pagination gem