Added a base controller class