Add optgroup to group classes