Need to fix a bug where the array doesn't update when the user drags an item around