Once they're in boxes there's nothing you can do to make them stay You could have a trusted person adopt them into their town so they can give the villager back later, but in order to receive them back you'd need to either reset or do the 16 villager cycle