added onChange instead of on("change")