edited index and single_survey.erb