add alert close event