add submit directives to text boxes