removed RenderToString() extension method (as likely to only be used in one place)
removed console logging statement