one of the solution might be:
please note there is a red button and a green button
green: run the pattern
on top of the problem that you noted there are some issues with share and embedded programs where actors are duplicated and code is not saved correctly. (when you run the code I have sent you can see and additional button but if you remix the code you can see that the extra button disappear.