page1 and page2 buttons are working