added paging buttons to posts