update url in templates