fixed search by adding flag to categorize search items