fixing pagination in contacts_search