kinda fixed the progressdialog