update a demo of dialog