for api btn