move the item type display logic into a tag