The digestive system: where the bladder holds liquid waste.
The nervous system: then uses the sensory info sent from the bladder to the brain, which then in return the brain sends a response to the bladder on when to release the liquid waste
hope this helps!