add function to mark an item as inventoried