once value is selected in input box, the other input boxes will be cleared