Added code from class to work with a XIB and add a text field and clear button