add controller class and configuration