Add function page_tree to project.