get location automatically on load