add base controller class