removed unnecessary functional from textedit