Modification of layout template