Added a text field and functionality