adjusted Textbox for new textlib API