Added progressbar when connecting