button.setState method