added a template mixin to setup form elements