The complex interplay between agn jet feedback and galaxy evolution