Added template based typeahead rendering.