added logic to the corrective tab