Added history functionality on the view, but still need to save in local storage