better way to get active pane