add the search funtion for searching contacts