Adding connection state dialog;