Use non-deprecated methods for rendering fields