added binding to input box