add real time text editing