adding autocomplete directive