refresh dialog: cancel on close