update class button