move connection dialog to package component and redesign ui