Setup main template file