Updated dates when it goes back/forward to the browser history