implement TaskDialog as a base class for some dialogs