edit-dialog: implement composite widget of edit dialog

Also, this patch implements a major design review of the dialog.