Automatic location update on page load