Clean code, now progress bar works in Android