change markup for new leaf  elements