In this way you will override the button / sidebar state of all the existing windows, with the state of the button clicked. This is not the behavior intended, each windows has its own sidebar's state; so if I click to the button in the window A, my action affects only that window, and not window B and C.