layout template adjust