adjust layout template