modified uploaded controller