Updated name search functionality