Separate class for connect dialog