still implementing text editor functions