refactor page object loading