Added support for HTML Template for the custom dialog