pagination added to posts index