It is unclear what you mean so you will need to clarify with examples.
What are you trying to change when the button is clicked?
Where is the example where you have 2 buttons doing the actions so we can see what you want?
You really must be clear in what you ask.