add a xml file where all history will saved, and the app load after startup and save after exiting