Modify how log textbox is created