Additional dialog changes

* Support for auto size content
* Close dialog in bootstrapper