complete handling search functionality and test if values from search function is render correctly