Removing the hardcoded urls in views