remove and edit main template