testing and refactoring. Added focus on the text area in practice mode