quantity now updating and saving locally