updated for closed event