added multiple select and kept code for old text box