create main tamplate