Updating render() to be use the function (which is a newer syntax)