search functionality improvements