How can I set the state of buttons when load the page

To make it so that people can help, you might want to edit your post to use the recommended way of posting flows on the Forum as the Fouum corrupts some of the characters to enable them to be read.

This post describes how to share flows in the forum: How to share code or flow json