fixing issue when switching between text and visual view