Added end option to progress dialog for cloud