Few minor changes made in the RenderField method