set text in leavewindow dialog