add pagination for post & history