Update connections when moving boxes