Rewrited TextBox

And fixed some bugs in other module