add pagination to top page