text editing partially implemented