fixxed buggs with progressdialogs