Refactoring of controllers. Created ControllerBase in Controller.ts