refactor RepoPages