Add templating to typeahead