change controller to RestController