Edit update quantity functionality