new layout using template