Use panelCollapsed and panelExpanded events

Use `panelCollapsed` and `panelExpanded` listeners instead of (attempting) to replace menu item.
References issue #7.