implement simple form for input element & bug fix