lastPanelIndex initialised