added updateMarkers() function with 5 second repeat