added config parameter to turn on and off typeahead