refactor base handler to load request and page objects