refactor survey view