only need to handle closeOk and close events