Coupling dark energy to dark matter perturbations