refactored url class to be a page class