Adding view inventory function