implemented horizontal buttons.