Modify hierarchy of pages