turn ButtonBar into react component