Added code to layout template page.