the view style must be assigned before we try and access the textfield.