updating generic controller class