handle commit/restor dialoag statte for single and multiple answers