Return response from view function