refact(ui): function to input a number