Refactored text view management.