Adapt the search for material name to the new API and add 'Allow other elements' checkbox search event