add cloase event