Backups of GUI Buttons

Hello,
I create an interface GUI into blender and i want to ask you if it’s possible to create backups of each action button.
Such as if I click button 1 after button 2 after button 3, and if I click after button two it returns to the state where it was before on the button 2.
If it’s possible can you tell me how can i do that please?
thanks