Fixed execute view function
Removed superflous response function
Added view rendering function