improved page tree functionality