Autocomplete support for last line, and UX improvements