implementated clinet side pagination