Chromatin dynamics coupled to DNA repair