add some functions about dialog