add close modal event