add onShowXPanel event