Improved search functionality for name and title