saving to local
saving and displaying history