refactor
truncate label
reize token if the width of the text takes the whole width of the textfield.