Move infowindow logic into contentChanged function, setup onMutation to detect changes.