Update the main template