modify to 3 buttons.