Update layout.template