added functionality of autocomplete on friend search.