added search function for contacts