Implement saveing simulation history on click browser's button