Made inter-panel communication possible via JavaSript variable, not that clean, but it works for now.