updating controller put method
updating return type