added post pagination and comment count