Added onPanelLoaded hook