search functionality fixed