Made connection UI into modal dialog

Also added automatic address insertion.