optimize user experience when inputting record