switching from text to number inputs