update style class