switch onkeyup to onchange to try to fix the autompletion error