update class layout