Add progress dialog while connecting to server.