chore (buttons_API): replace code with funciton call