Added inventory controller for manipulating the quantity value