Update layout variables