add group and page wrap to pages