swapping in the new layout