Improve the code using the new hot-input tag