Added support for custom dialog content

Hack to add support for custom dialogs. A Pane is added to content
panel. A Callback is added to buttons' onAction handler.
Revert "Added support for custom dialog content"

This reverts commit 3f9a3a671e080c45dd774dcb9d4b52d4a3d21716.