working on update inventory functionality