added select event handling back into autocomplete