As an example, I have shown you the blocks, now how to connect Button2 and Button4 to Any button clicke do

As an example, I have shown you the blocks, now how to connect Button2 and Button4 to Any button clicke do

I would use CompCreator, which returns proper component names.