simplified dialog usage, and fixed issue in group selection