First version of connection dialog