files rename, new implementation of drawTextBox