Added function to get the selected side panel