Two ways: either have the button part of the group - there is a different button in each group, with its own workflow
Or
Create a custom state screen_to_show that you increment when the user clicks the button.
This might also help: Usage of cookies