add rounding to input elements