added pagination code to survey.html