Change to use selectedindex instead of text in the listbox