added features to textedit