fixed issues with text box