Use the layout state in runIR