The problem I am having with the below code is that when the user searches for a specific contact and I need to change the list from contacts to searchRes
contacts
searchRes