added opt group support to selects