[OE-2714] updated js to use the new handleButton method