Ensuring layout is correct