Modify text box (with more settings) and collapsible panel (with a bug fix)