Cleaned up variable calls in generatePanelTitle

Cleaned up variable calls in generatePanelTitle