replaced keyup with blur