Detecting and keeping changes to Text Panes