keep selected value for grouped select box

fixes #104.