Selectmenu: improve element creation