modified templates and configuration.php to add condition: option