code  cleaning / use gauge for downloading in dialog interface