Refactored main page object