added function to change numbers in inputs