style pages and refactor links in pages