implement button-bar