main template updated