Removing hardcoded url in views