We already described the button-toggling and attached an example project at your other opened duplicate topic: