autocomplete, fix ui bugs