Add delegate for text field