update accordion widget to include collapsed and expanded classes and styles