added location get on page load