added Gadley pagination