replaced text box with number input

used spinner