You can take a checkbox .
1) checkbox property set Value When Checked = 0 and Value When Cleared = 1.
2)Then on your 1st section set Conditional Formatting ( That when checkBox is equal to 0 , Hide this section).
3)Then on your 2nd section set Conditional Formatting ( That when checkBox is equal to 1 , Hide this section).
4)Write a rule on your button where you set your checkbox value to 0.
Try this and let me know if you face any problem.