Dynamic interplay between enhancer-promoter topology and gene activity