Added 'opened' and 'closed' events when sections are opened/closed