Adding an input text and its delegate