Integrated TreatmentPlan logic with GUI