added connect dialog
formatting