refactor RootController by using ControllerAdvice