What you have created is one step away from a mod I had been thinking of developing, a recipe catalog that the user can browse and see what items are made from and what recipes they are in.
When looking at the popup window and it shows the results of an item, clicking on an item in the list would make it the new target and update the window.
Example: User clicks on the icon with iron ore in hand -> window shows Ingredient in: Concrete, Iron plate, etc.
User then clicks on Iron plate icon in window -> window updates with Iron plate as new target item, displaying Ingredient in: Iron chest, Storage tank, Transport belt, etc.