pane.activated event maybe?