Use the value of the pluginState to initialize the button