add progress dialog when connecting device;