Adding event tracking for panel open/close