Update of getPanelData and its use of STATE variable