update page contents