Refactoring into PageLoader