refactoring. Main controller.
role check.