Redefined autocomplete source and select functions