typeahead selection code has been improved a lot, still bugs existing that needs to be fixed.