Added callback and validation for DurationDialog