Added show loading progressbar if connecting.