added close event