added location detection logic to mobile count pages