Updated functions for painting markers and marker event listeners with info windows