Added conditional scroll to textfield