example for the button api