adding pagination to the bottom of the post list