minor improvements to the layout template