updating
Finished pagination