changes in logic for search by display