get location and display in labels with error handling