added save history option