texthandling improved. regex for edit works but smells bad.