get location on load