add dialog support
add dialog support