Simplify CustomProgressDialog implementation