When you use the action “Go to page” check the box to send more data through the url. Use this to send which button was clicked. Then on your second page you can access the data from the url as a data source of a group or on a conditional of a workflow to set whichever group needs to be visible.