update layout template file