removing hardcoded URLs in templates