added number selection and input from history