main template basic structure