update page and script structure