Electroweak bosons in heavy ion collisions in CMS