create pages and links