add grouping to comments and posts