add pagination to html