implement simple-dropdown widget