create controller class