update the dom structure for prompt dialog
fix OO pattern