automatic and manual location detection on mobile and desktop