AddDialog: generating of parent list code simplification