Progress on the TextEditor and made MainFrame a singleton