added TaskDialog debug mode