added pagination gem and pagination to index page