Change how set $selected and how select the option -refs #6893