add tamplate layout