converted typeaheads to use functions for their sources