Changed render_to_response() calls to render