updated show inventory function