How to create sidebar?

thanks, I used the button in another blueprint successfully.
But the original will not use in onclick function. Can’t I use this button at same time?
Because I need to toggle and Set Column pawn at the same time.