make BaseDialogBuilder public so you can use it in subclasses.