Could we change what gets returned from dashboard.availablePanels instead and keep this code as it was?