refactor take_survey view