add control statement when to dom dsl