Pass the model to render() instead of setting it manually