fix pagination google style naive but works