update class controller