add callback to closeDialog