panel.add(controlsPanel);
panel.setCellHorizontalAlignment(controlsPanel, PHorizontalAlignment.ALIGN_CENTER);
panel.setCellHorizontalAlignment(content, PHorizontalAlignment.ALIGN_CENTER);
dialogBox.setWidget(panel);
dialogBox.show();
dialogBox.center();
return optionPane;
}