change value in input element when user select suggested words in suggestion menu