ui_dropdown: dehydrated code