update styling for text box
delete obsolete code