implement focus functionality
fix the bug with the wrong identifier in first pane after new window