added autoresizing of the textfield.