working connect dialog
simplify using new ui apis