updated NumToggler class with touch events