implementing the survey page and survey save