[FEATURE] PageTree::setPid
[FEATURE] clean up PageTreeController

and initialize a pageTree for the logic