added bi-directional bindings on input elements