add namespaces to pages control and fix page tree, add page links to index