added progress_loader. generic way of handling cancel/accept progress dialog