Main template is updated