Removing hardcoded url in models