Modified events to accept pane instead of node