add interface for textfiled