about dialog implementation