Improved behavior of tag input field