change order of pages and external links, external links are now displayed after pages