Updates location if page is updated