add initial survey result logic and update view