Adds better styling and logic for dynamic width of the textfield according to the maximum number of characters the textfield will show