Panel content update moved inside loop to include all panes instead of just MainPanel.
Placeholder for result filtering function.