Restructures layout