Update style to class