changed varible url to url_to_render if several requests are made