restore autocomplete

also enable form submission, use proper query name, and
fix the 5 item limit in the autocomplete to be all of them.