Environmental and plant genetic effects on tri-trophic interactions