updates class layout