confirm dialog fix for completed tasks