Add page grouping functions