Replace weird optgroup with table