change num_main_templates on successful load