adding button api