Refactorings and making jj clear the screen after selecta finishes