Updating history path on load