Set layout before each recomputed action; closes #600