decorated main template