improved ping autocomplete. esc reverts to before selection