creating main page and a survey page