Rewrite how render function is overridden