consolidate page modifications into page class