Link main document to sub-pages