Added delegate methods for text field