How to disable elements on refresh.

@freethomasv The code with the JSON is just a way to save all the button states together instead of one by one. If you only have 2 buttons, you can ignore it.