Added execute_view function