dialog method, dialogclose event, updated example expression
example version