Adds handling of text field