I didn't find out how to do it.
The visibilityCallBack need to know the section that is manipulated to change it, and that was what stuck me.
If you have suggestions I'd be happy to hear them