added autocomplete to addResult