Made close button on ViewSurvey work