fixes contents layout