History and Save managment in InputField