update controller class