fixed textedit
fixed source code style