completed initial implementation for autocomplete for edit