some logic for local text editing added