Toggle Music On/Off From UI Widget

Am I doing something wrong???

It’s doing the same thing…