remove hardcoded urls in templates