updated survey view to avoid displying error without any wrong input