Yes.  If you want to update the dialog from the functions to handle that scenario, it would be better to fire an update message to the window and handle it there.