added sample and double data-binding for inputs