generating a select element with the groups
group limitation now works as expected