bug 988: rework of the selectbox creation