onPanelCollapse and onPanelExpand