Added ability to embed child views in dialog