Return render array instead of html in view function