added functionality to update quantity