moving autocomplete feature to be global at app scope