refactor default pages