Add buttons in js. Add options showButtons and minPanelHeight.