add event for panel