Update SurveyController.php

Add view function in the controller.