reorganized SurveyActivity for better error correction