Support for custom dialog