Layout controller