Improve REPL pane behavior more