Einstein-Hilbert action on isospectral deformation of Riemannian manifolds