added persistent values across visits, and onload charts, and improved the reset button to work with this