update page1 and page2 content