Close inventory menus when an item is clicked