refactoring. added page service.