clean up visibility in CurveWidget class