Make templates for main pages