render is changed to render_to_string. Render returns 1 instead of the rendered text