fix progress dialog when screen rotates