add localstorage to history and add more to view page