make templaye main