moving main content into layout template