added elements to handle EditText in the template