change the html of the card according to the current marker