add input box functionality