Toggle will apply template and take into account dangerous functions