Added array update functions when drag drop