Use TransparentWebMarkupContainer for modal bodies and expose getters for modal components
Add more dialogs examples