template_main for withdesign